<template>
  <div class="shopinfo">
    <!-- search S-->
    <div class="search">
      <div class="search__back iconfont">&#xe609;</div>
      <div class="search__content">
        <span class="search__content__icon iconfont">&#xe62e;</span>
        <input class="search__content__input"
               placeholder="请输入商品名称" />
      </div>
    </div>
    <!-- search E -->
    <shop-info :item="item"
               :hideBorder="true" />
  </div>
</template>

<script>
import ShopInfo from '../../components/ShopInfo'
export default {
  components: { ShopInfo },
  setup () {
    const item = {
      id: 11,
      img: 'https://img2.sycdn.imooc.com/5fec666300017b0810801078-140-140.jpg',
      name: '鸿星尔克',
      monthSale: '100万+',
      beginTrans: 221,
      freight: 32,
      vipDesc: '鸿星尔克劝你理性消费'
    }
    return { item }
  }
}
</script>

<style lang='scss' scoped>
.shopinfo {
  padding: 0 0.18rem;
  .search {
    margin: 0.2rem 0 0.16rem 0;
    display: flex;
    line-height: 0.32rem;
    &__back {
      width: 0.32rem;
      font-size: 0.24rem;
    }
    &__content {
      display: flex;
      flex: 1;
      background-color: #f5f5f5;
      border-radius: 0.16rem;
      &__icon {
        width: 0.44rem;
        height: 0.32rem;
        text-align: center;
      }
      &__input {
        flex: 1;
        border: none;
        outline: none;
        padding-right: 0.14rem;
        font-size: 0.14rem;
        color: #333;
        background: none;
        &::placeholder {
          color: #d5d5d5;
        }
      }
    }
  }
}
</style>
